home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #11
/
Amiga Plus CD - 2004 - No. 11.iso
/
AmiSoft
/
Dev
/
misc
/
LOCCounter.lha
/
LOCCounter
/
src
/
Tally.h
< prev
Wrap
C/C++ Source or Header
|
2004-08-17
|
946b
|
48 lines
#ifndef LOC_TALLY_H
#define LOC_TALLY_H
/****************************************************************************
*
* $RCSfile: Tally.h $
* $Revision: 2.9 $
* $Date: 2004/08/17 23:02:55 $
* $Author: ssolie $
*
*****************************************************************************
*
* Copyright (c) 2004 Steven Solie. All Rights Reserved.
*
*****************************************************************************
*
* Tally component
*/
#include <dos/dos.h>
#include <list>
#include <boost/shared_ptr.hpp>
class FileCount;
class FileTally;
class Tally {
public:
Tally(bool diff_mode);
~Tally();
void addFile(FileCount& fc);
void print(const BPTR fh);
void printTotal(const BPTR fh) const;
void printQuick(const BPTR fh) const;
private:
std::list< boost::shared_ptr<FileTally> > m_files;
uint32 m_num_files;
uint32 m_total_loc;
uint32 m_total_added_loc;
uint32 m_total_deleted_loc;
bool m_diff_mode;
};
#endif